﻿using Nop.Web.Framework.Mvc.Routes;
using System.Web.Mvc;
using System.Web.Routing;

namespace Nop.Plugin.Misc.MessageDesigner
{
    public partial class RouteProvider : IRouteProvider
    {
        public void RegisterRoutes(RouteCollection routes)
        {
            routes.MapRoute("Nop.Plugin.Misc.MessageDesigner.List",
                 "Plugins/MiscMessageDesigner/List",
                 new { controller = "MiscMessageDesigner", action = "List" },
                 new[] { "Nop.Plugin.Misc.MessageDesigner.Controllers" }
            );
            routes.MapRoute("Nop.Plugin.Misc.MessageDesigner.DesignList",
                "Plugins/MiscMessageDesigner/DesignList",
                new { controller = "MiscMessageDesigner", action = "DesignList" },
                new[] { "Nop.Plugin.Misc.MessageDesigner.Controllers" }
           );
            routes.MapRoute("Nop.Plugin.Misc.MessageDesigner.TemplatesList",
                "Plugins/MiscMessageDesigner/TemplatesList",
                new { controller = "MiscMessageDesigner", action = "TemplatesList" },
                new[] { "Nop.Plugin.Misc.MessageDesigner.Controllers" }
           );

        }
        public int Priority
        {
            get
            {
                return 0;
            }
        }
    }
}
